/* 
 * File:   AnimationFrame.h
 * Author: RedEyedKiller
 *
 * Created on 21 Απρίλιος 2011, 12:52 μμ
 */

#ifndef ANIMATIONFRAME_H
#define	ANIMATIONFRAME_H

#include "Rect.h"

/**
 * This struct represents a single animation from a spritesheet.
 */
struct AnimationFrame
{
    /**
     * A rect to describe the first frame of an animation sequence.
     * Note that each following frame is described as firstFrame.left + currentFrame*firstFrame.width
     */
    Math::Rect firstFrame;
    
    /**
     * The total time in miliseconds this animation sequence should overally take.
     */
    int totalTime;
    
    /**
     * The total number of frames this animation sequence has.
     */
    int numberOfFrames;
    
    /**
     */
    bool flip[2];
};

#endif	/* ANIMATIONFRAME_H */
